

package cn.bdqn.pn.controller.base;

import cn.bdqn.pn.pojo.base.Reply;
import cn.bdqn.pn.service.base.ReplyService;
import com.alibaba.fastjson.JSON;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

import java.util.List;



/**
 * 管理员回复用户
 */


//@Controller
//@RequestMapping(value = "/reply")
public class ReplyController {
    @Autowired
    private ReplyService replyService;




/**
     * 展示所有反馈内容及问题
     * @return
     */
/*/

 /*   @RequestMapping("/aaa")
    public String listReply(Model model){
        List<Reply> replyList=replyService.showReply();
        model.addAttribute("replyList",replyList);
        return "/ReplyQuestion";
    }
*/

/**
     * 增加一条管理员回复用户 反馈
     * @param reply
     */


   /* @RequestMapping("/zengjia")
    public ModelAndView add(Reply reply) throws Exception {
        replyService.addReply(reply);
        List<Reply> replyList=replyService.showReply();
        ModelAndView modelAndView=new ModelAndView();
        modelAndView.addObject("replyList",replyList);
        modelAndView.setViewName("Questionquestion");
        return  "/Questionquestion";
    }*/
 /* @RequestMapping("/zengjia")
    public String zengjia(Reply reply){
      replyService.addReply(reply);
      return "/";
  }*/
}


